package com.ljb.android.component.knowledge.startup

import android.content.Context
import androidx.startup.Initializer
import com.ljb.android.comm.startup.CommInitializer
import com.ljb.android.comm.utils.XLog
import com.ljb.android.component.knowledge.KnowInit

class KnowInitializer : Initializer<KnowInit> {

    override fun create(context: Context): KnowInit {
        val start = System.currentTimeMillis()
        KnowInit.init(context)
        val end = System.currentTimeMillis()
        XLog.d("=== ${javaClass.simpleName}   init:${end - start}ms ===")
        return KnowInit
    }

    override fun dependencies(): MutableList<Class<out Initializer<*>>> {
        return mutableListOf(CommInitializer::class.java)
    }
}